package com.zyx.pulsardemo.protobuf.pojo;

import java.util.Date;

/**
 * @author Yaxi.Zhang
 * @since 2021/10/21 15:10
 */
public class DogDemo {
    public static void main(String[] args) {
        String date = new Date().toString();
        DogPOJO.Dog dog = DogPOJO.Dog.newBuilder().setName("1001").setDate(date).build();

        System.out.println(dog.getName());
        System.out.println(dog.getDate());

        System.out.println(dog);
    }
}
